package model

import "database/sql"


var Models = []interface{}{
	&User{},
}

type Model struct {
	Id int64 `gorm:"PRIMARY_KEY;AUTO_INCREMENT" json:"id" form:"id"`
}

type User struct {
	Model
	Username sql.NullString `gorm:"size:32;unique;" json:"username" form:"username"`
	Password string `gorm:"size:512" json:"password" form:"password"`
}